// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
// 轮播组件引入
import VueAwesomeSwiper from 'vue-awesome-swiper'
import router from './router'
// 移动端300毫秒点击延迟 npm install fastclick --save
import fastClick from 'fastclick'
// 引入Vuex
import store from './store'

import 'babel-polyfill'

// 样式重置文件
import 'styles/reset.css'
// 1px边框
import 'styles/border.css'
// 图标字体引入
import 'styles/iconfont.css'
// 轮播组件样式引入
import 'swiper/dist/css/swiper.css'

Vue.config.productionTip = false
// 点击延迟绑定
fastClick.attach(document.body)
// 轮播引入
Vue.use(VueAwesomeSwiper)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router: router,
  store: store,
  components: { App: App },
  template: '<App/>'
})

// 路由根据网址的不同返回不同的内容给用户
